﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GH.Web.Welfare
{
    public partial class RecuperateCondationSumirise : BasePage.PageBase
    {

        public static string UnitRoot = System.Configuration.ConfigurationSettings.AppSettings["UnitRoot"];

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                hddSumarry.Value = "0";
                this.Session["UnionSelect"] = this.Session["Union"].ToString();
                //报表汇总
                if (GetRight(401))
                {
                    hddRights.Value = "1";

                }
                else
                {
                    hddRights.Value = "0";
                }
                //报表查看
                if (GetRight(402))
                {
                    hddOpen.Value = "1";

                }
                else
                {
                    hddOpen.Value = "0";
                }
                this.Session["SelectCurrentYear"] = DateTime.Now.Year.ToString();

            }

            this.hddYear.Value = this.Session["SelectCurrentYear"].ToString();

            this.hddAllUnionName.Value = UnitRoot;
            this.hddUnionID.Value = this.Session["UnionSelect"].ToString();
            this.lblUnion.Text = new BLL.Union().GetModel(Convert.ToInt32(this.Session["UnionSelect"])).单位名称;

        }
    }
}
